package com.campus.commons.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 活动表
 * </p>
 *
 * @author Rin
 * @since 2020-12-24
 */

@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="Activity对象", description="活动表")
public class Activity implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "活动标题")
    private String title;

    @ApiModelProperty(value = "活动内容")
    private String content;

    @ApiModelProperty(value = "活动图片")
    private String image;

    @ApiModelProperty(value = "开始时间")
    @TableField("startTime")
    private Date starttime;

    @ApiModelProperty(value = "活动结束时间")
    @TableField("endTime")
    private Date endtime;

    @ApiModelProperty(value = "预览数")
    @TableField("lookAmount")
    private Integer lookamount;

    @ApiModelProperty(value = "有正确的值视为班级活动否则视为全校活动")
    @TableField("classId")
    private Integer classid;

    @ApiModelProperty(value = "活动发起人，")
    @TableField("userId")
    private Integer userid;


}
